package com.lagou.service.impl;

import com.lagou.commom.pojo.Products;
import com.lagou.mapper.ProductMapper;
import com.lagou.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public Products findProductById(Integer id) {
        Products products = productMapper.selectById(id);
        return products;
    }
}
